{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="post" role="form">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">物品领用添加</p>
                </div>
                <div class="box-body">
            			  <div class="form-group">
                                  <label class="col-md-4 control-label text-right">
                                      领用人：
                                  </label>
                                  <div class="input-group col-md-4 col-sm-12 col-xs-12">
                                       <input type="text" name="goods_name" class="form-control" value="{%$goods_user%}" placeholder="">
                                  </div> 
                              <p class="col-md-offset-4 text-blue">说明：自己领用无需选择姓名，只有物品发放人员可选择领用人。</p>
                            </div>
                  <!-- 时间日历标签 -->
                   <div class="form-group">
                        <label class="col-md-4 control-label text-right">
                            领用时间：
                          </label>
                          <div class="input-group col-sm-4" style="float:left;">
                                  <input id="from" class="form-control" value="" name="goods_date" type="text">
                                  <div class="input-group-addon">
                                      <i class="fa fa-calendar"></i>
                                  </div>
                          </div>                
                   </div>
                   <div style="clear: both; height: 14px;"></div>
					
                  <div class="form-group">
                       <label  class="col-md-4 control-label text-right">
                             领用物品：
                        </label>
                        <div class="input-group col-md-5 col-sm-12 col-xs-12">
                               <textarea id="category_content" name="goods_content" rows="3" class="form-control"></textarea>
                        </div> 
                  </div>					
                   <div class="form-group">
                       <label for="inputPassword3" class="col-md-4 control-label text-right">
                             物品用途：
                        </label>
                        <div class="input-group col-md-5 col-sm-5 col-xs-12">
                               <textarea id="category_content" name="goods_use" rows="3" class="form-control"></textarea>
                        </div> 
                  </div>    
				   </div><!--box-body --> 
                <div class="box-footer text-center">
                     <button class="btn btn-primary" type="submit">保 存 </button>
                 </div>
             </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
   
  {%include file="index.footer.tpl.php"%}
  <script>
  //时间日历
$(function() {
  $( "#from" ).datepicker({
    defaultDate: "+1w",
    changeMonth: true,
    changeYear: true,
    numberOfMonths:1,
    onClose: function( selectedDate ) {
      $( "#to" ).datepicker( "option", "minDate", selectedDate );
    }
  });
  $( "#to" ).datepicker({
    defaultDate: "+1w",
    changeMonth: true,
    changeYear: true,
    numberOfMonths:1,
    onClose: function( selectedDate ) {
      $( "#from" ).datepicker( "option", "maxDate", selectedDate );
    }
  });
});
  </script>
